home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / APXSDI.PAK / APXPREV.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  2KB  |  69 lines

  1. //----------------------------------------------------------------------------
  2. //  Project ApxSdi
  3. //  Borland International
  4. //  Copyright ⌐ 1996. All Rights Reserved.
  5. //
  6. //  SUBSYSTEM:    ApxSdi Application
  7. //  FILE:         apxprev.h
  8. //  AUTHOR:
  9. //
  10. //  OVERVIEW
  11. //  ~~~~~~~~
  12. //  Class definition for TApxPreviewWin (Print Preview).
  13. //
  14. //----------------------------------------------------------------------------
  15. #if !defined(apxprev_h)   // Sentry, use file only if it's not already included.
  16. #define apxprev_h
  17.  
  18. #include <owl/controlb.h>
  19. #include <owl/preview.h>
  20.  
  21. #include "apxprint.h"
  22. #include "apxsdapp.rh"
  23.  
  24.  
  25. //{{TDecoratedFrame = TApxPreviewWin}}
  26. class TApxPreviewWin : public TDecoratedFrame {
  27.   public:
  28.     TApxPreviewWin(TWindow* parentWindow, TPrinter* printer, TWindow* currWindow, const char far* title, TLayoutWindow* client);
  29.    ~TApxPreviewWin();
  30.  
  31.     int             PageNumber, FromPage, ToPage;
  32.  
  33.     TWindow*        CurrWindow;
  34.     TControlBar*    PreviewSpeedBar;
  35.     TPreviewPage*   Page1;
  36.     TPreviewPage*   Page2;
  37.     TPrinter*       Printer;
  38.  
  39.     TPrintDC*       PrnDC;
  40.     TSize*          PrintExtent;
  41.     TApxPrintout*   Printout;
  42.  
  43.   private:
  44.     TLayoutWindow*  Client;
  45.  
  46.     void SpeedBarState();
  47.     void PPR_PreviousEnable(TCommandEnabler& tce);
  48.     void PPR_NextEnable(TCommandEnabler& tce);
  49.     void PPR_Previous();
  50.     void PPR_Next();
  51.     void PPR_OneUp();
  52.     void PPR_TwoUpEnable(TCommandEnabler& tce);
  53.     void PPR_TwoUp();
  54.     void PPR_Done();
  55.  
  56. //{{TApxPreviewWinVIRTUAL_BEGIN}}
  57.   protected:
  58.     virtual void SetupWindow();
  59. //{{TApxPreviewWinVIRTUAL_END}}
  60.  
  61. //{{TApxPreviewWinRSP_TBL_BEGIN}}
  62.   protected:
  63.     void EvClose();
  64. //{{TApxPreviewWinRSP_TBL_END}}
  65. DECLARE_RESPONSE_TABLE(TApxPreviewWin);
  66. };    //{{TApxPreviewWin}}
  67.  
  68. #endif  // apxprev_h
  69.